package com.nthink.indicators.mapper.qualitymanagement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nthink.indicators.pojo.qualitymanagement.SafeManagement;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;

@Mapper
public interface SafeManagementMapper extends BaseMapper<SafeManagement> {

    //    @ApiModelProperty("住院患者出院当天再住院率")
    public double getInRegAgainRate(Date startTime, Date endTime);

    //    @ApiModelProperty("患者出院2-31天内再住院率")
    public double getInMonthRegAgainRate(Date startTime, Date endTime);

    //    @ApiModelProperty("压疮发生")
    public int getPressureSores(Date startTime, Date endTime);

    //@ApiModelProperty("跌倒/坠床发生")
    public int getFall(Date startTime, Date endTime);

    //    @ApiModelProperty("人工气道意外脱出例数")
    public int getAirwayProlapse(Date startTime, Date endTime);

    //    @ApiModelProperty("择期手术后并发症总例数")
    public int getOperationCount(Date startTime, Date endTime);

    //    @ApiModelProperty("不良事件上报总例数")
    public int getTotalCount(Date startTime, Date endTime);
}
